﻿<%@ Page Language="vb" MaintainScrollPositionOnPostback="true" AutoEventWireup="false" CodeBehind="ContractHistory.aspx.vb" Inherits="ccapps.ContractHistory"  %>



<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>


    <style type="text/css">
	.prompt { BACKGROUND-COLOR: #a2547f; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; FONT-FAMILY: Arial, Helvetica, sans-serif; HEIGHT: 20px; COLOR: #ffffff; FONT-SIZE: 11px; FONT-WEIGHT: bold; TEXT-DECORATION: none }



        .button02 {
			border-style: none;
              border-color: inherit;
              border-width: 1px;
              font-family: Verdana, Arial; 
		      font-size : 10px; 
		      font-weight : bold;
		      color: #336699;
		      padding : 3px;
		     float:right;
		      text-align:center;
		      text-decoration: none;
            }
         .button03 {
			border-style: none;
              border-color: inherit;
              border-width: 1px;
              font-family: Verdana, Arial; 
		      font-size : 10px; 
		      font-weight : bold;
		      color: #336699;
		      padding : 3px;
		      text-align:center;
		      text-decoration: none;
            }
               .bir 
{
	font-family: Arial, Helvetica;
	color: #000000;
	font-size: 12px;
	text-decoration: none;
	width: 225px;
	border-top: 1px solid #dfdfdf;
	padding-left: 10px;
	background-color: #e6e6fa;	
} 
.iki 
{
	        BACKGROUND-COLOR: #f5f5f5;
            FONT-FAMILY: Arial, Helvetica;
            COLOR: #000000;
            FONT-SIZE: 12px;
            TEXT-DECORATION: none; 
			width:225px;
            border-collapse:collapse
}
	  .auto-style1 {
              font-family: Arial, Helvetica;
              color: #000000;
              font-size: 12px;
              text-decoration: none;
              width: 226px;
              border-top: 1px solid #dfdfdf;
              padding-left: 10px;
              background-color: #e6e6fa;
              height: 17px;
          }
          .auto-style2 {
              BACKGROUND-COLOR: #f5f5f5;
              FONT-FAMILY: Arial, Helvetica;
              COLOR: #000000;
              FONT-SIZE: 12px;
              TEXT-DECORATION: none;
              width: 675px;
              border-collapse: collapse;
              height: 17px;
          }
          		
		  .auto-style5 {
            font-family: Arial, Helvetica;
            color: #000000;
            font-size: 12px;
            text-decoration: none;
            width: 226px;
            border-top: 1px solid #dfdfdf;
            padding-left: 10px;
            background-color: #e6e6fa;
        }
		  .black_overlay{
			display:none;
			position: absolute;
			top: 0%;
			left: 0%;
			width: 100%;
			height: 125%;
			background-color: black;
			z-index:1001;
			-moz-opacity: 0.8;
			opacity:.80;
			filter: alpha(opacity=80);
		}
		.white_content {
			display:none;
			position: absolute;
			top: 25%;
			left: 25%;
			width: 250px;
			height: 150px;
			padding: 16px;
			border: 8px solid #930051;
			background-color: white;
			z-index:1002;
			overflow: auto; 
            font-size:large; 
            text-align:center; 
            vertical-align:middle;  
            FONT-FAMILY: Arial, Helvetica, sans-serif; 
            FONT-SIZE: 12px; 
            FONT-WEIGHT: bold;
            border-radius:25px; 

            
            
            
		}
		  #confirmTable {
            width: 1052px;
        }
           .text-alan { 
            padding-top:8px; 
            width:250px; 
            height:26px;
            

        }
		  </style> 

    <script src="../js/scrollsaver.min.js"></script> 

       <script type = "text/javascript">
           function Confirm2(textbox_id) {
               var confirm_value = document.createElement("INPUT");
               confirm_value.type = "hidden";
               confirm_value.name = "confirm_value";
               document.forms["form1"].submit();
               var textbox = document.getElementById(textbox_id);
               var textlength = textbox.value.length;
               if (textlength == 11) {
                   if (confirm("Devam Etmeniz Halinde Yeni Bir Müşteri Yaratılacaktır?")) {
                       confirm_value.value = "Yes";
                       deneme2()
                   } else {
                       confirm_value.value = "No";

                   }
               }
               else {
                   alert("Tc Kimlik No Alanı Yanlış veya Eksik Bilgi İçeriyor!");
               }



               document.forms[0].appendChild(confirm_value);

           }

           function Confirm() {
               deneme2()

           }

           function Confirm3() {
               var confirm_value = document.createElement("INPUT");
               confirm_value.type = "hidden";
               confirm_value.name = "confirm_value";
               document.forms["form1"].submit();

               if (confirm("Devam Etmeniz Halinde Bir Sonraki Adımda Mevcut Müşteriye Yeni Kontrat Yaratılacak?")) {
                   confirm_value.value = "Yes";
                   deneme2()
               } else {
                   confirm_value.value = "No";

               }
               document.forms[0].appendChild(confirm_value);

           }

           function deneme2() {
               setTimeout("uyaricikar()", 1)

           }
           function uyaricikar() {

               if (Page_IsValid == true) {
                   document.getElementById("light").style.display = "block";
                   document.getElementById("fade").style.display = "block";
               }
           }
            
      




    </script>
      <script src="../assets/scripts/CalendarPopup.js"></script> 
    <script src="../assets/scripts/common.js"></script>
    <script>document.write(getCalendarStyles());</script>

</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />   
          <asp:Label ID="ErrorMes" runat="server" ForeColor="Red"></asp:Label>
        <asp:Label ID="lblcontrol" runat="server" Visible="False"></asp:Label>
        <table style="width: 1054px">
  <tr>
    <td  colspan="3" class="prompt">Kontrat Geçmişi</td>

  </tr>
  <tr>
    <td class="bir">MSISDN
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtMsisdn" Display="Dynamic" ErrorMessage="MSISDN Alanın Girilmesi Zorunludur." Font-Size="Large" SetFocusOnError="True" ValidationGroup="GrpMSISDN" ForeColor="Red">(*)</asp:RequiredFieldValidator>
       
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxtMsisdn" ErrorMessage="Format:5051234567" ValidationExpression="^[0-9]+$" Font-Size="Large" ValidationGroup="GrpMSISDN" ForeColor="Red">(*)</asp:RegularExpressionValidator>
       
      </td>
    <td class="iki">
          
                            <asp:TextBox ID="TxtMsisdn" runat="server" MaxLength="10" onkeydown = "return (event.keyCode!=13)" Width="385px" CssClass="text-alan"></asp:TextBox>
      
                        </td>
    <td class="iki">    
                            <asp:Button ID="SMSISDN" runat="server" CssClass="button02" Text="Doğrula"  ValidationGroup="GrpMSISDN" />
                            </td>
  </tr>
  <tr>
    <td class="bir">Custcode<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TxtCustcode" ErrorMessage="CustCode Alanın Girilmesi Zorunludur." Font-Size="Large" ValidationGroup="GrpCustCode" ForeColor="Red">(*)</asp:RequiredFieldValidator>
      </td>
    <td class="iki">
                            <asp:TextBox ID="TxtCustcode" runat="server" onkeydown = "return (event.keyCode!=13)" CssClass="text-alan" Width="385px"></asp:TextBox>
       
                        </td>
    <td class="iki">    
                            <asp:Button ID="SCustCode" runat="server" CssClass="button02" Text="Doğrula" ValidationGroup="GrpCustCode" />
                            </td>
  </tr>
  </table>
             <table id="confirmTable" runat="server" visible="false">
  <tr>
    <td colspan="4" class="prompt">Müşteri Bilgileri</td>
  </tr>
  <tr>
    <td class="auto-style1" colspan="2">Müşteri</td>
    <td class="auto-style2" colspan="2">    
                            <asp:Label ID="LblCustomer" runat="server"></asp:Label>
      </td>
  
  </tr>
  <tr>
    <td class="auto-style5" colspan="2">CustCode/MSISDN</td>
    <td class="iki" colspan="2">    
                            <asp:Label ID="LblCustcodeMSısdn" runat="server"></asp:Label>
                            <asp:Label ID="LblCsid" runat="server" BorderStyle="None" Visible="False"></asp:Label>
                            <asp:Label ID="Label26" runat="server" Visible="False"></asp:Label>
                            <asp:Label ID="Label27" runat="server" Visible="False"></asp:Label>
      </td>
   
  </tr>

  <tr>
    <td colspan="4" class="bir">    
                            &nbsp;</td>
  </tr>
                   <tr>
    <td class="auto-style5">Başlangıç Tarihi</td>
    <td class="iki">    
                          
                         <asp:TextBox ID="TxtDate" runat="server"></asp:TextBox>
        <SCRIPT LANGUAGE="JavaScript">
            var cal1x = new CalendarPopup("testdiv1");
</SCRIPT>
       
<a HREF="#" onClick="cal1x.select(document.forms[0].TxtDate,'anchor1x','dd/MM/yyyy'); return false;" TITLE="cal1x.select(document.forms[0].TxtDate,'anchor1x','dd/MM/yyyy'); return false;" NAME="anchor1x" ID="anchor1x"><IMG border="0" name="popcal" alt="" align="absMiddle" src="/ccapps/util/calender/calbtn.gif"
												width="34" height="22"></a>
                       </td>
                         <td class="auto-style5">Bitiş Tarihi</td>
                        <td class="iki">    
                          
                            <asp:TextBox ID="TxtDate2" runat="server"></asp:TextBox>
                         
  <SCRIPT LANGUAGE="JavaScript" ID="jscal1xx">
      var cal1xx = new CalendarPopup("testdiv1");
      //cal1xx.showNavigationDropdowns();
</SCRIPT>
<A HREF="#" onClick="cal1xx.select(document.forms[0].TxtDate2,'anchor1xx','dd/MM/yyyy'); return false;" TITLE="cal1xx.select(document.forms[0].TxtDate2,'anchor1xx','dd/MM/yyyy'); return false;" NAME="anchor1xx" ID="anchor1xx"><IMG border="0" name="popcal" alt="" align="absMiddle" src="/ccapps/util/calender/calbtn.gif"</A>
                       </td>
    
  </tr>
                   <tr>
    <td class="auto-style5" colspan="4">Kategoriler</td>
   
    
  </tr>
                           <tr>
    <td class="iki" colspan="4">  

            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <Triggers>
                <asp:PostBackTrigger ControlID="btnFullPostBack" />
            </Triggers>
            <ContentTemplate>
            
          <asp:ListBox ID="ListBox1" runat="server" Height="167px" Width="294px" SelectionMode="Multiple">
            <asp:ListItem Value="CC CO NEW">New Contract</asp:ListItem>
            <asp:ListItem Value="CC DIRNUM REPLACED,CC CANCEL DN REPL">Directory Number</asp:ListItem>
            <asp:ListItem Value="CC PORT REPLACED,CC CANCEL PORT REPL">Port</asp:ListItem>
            <asp:ListItem Value="CC ACCESS MOD">Service / Recurring Charge</asp:ListItem>
            <asp:ListItem Value="CC SUBSCRIPT MOD">Service / One-time Charge</asp:ListItem>
            <asp:ListItem Value="CC ADV. ACCESS MOD">Service /Advanced Charge</asp:ListItem>
            <asp:ListItem Value="CC DEVICE REPLACED,CC CANCEL SMHLR REPL,CC CANCEL SM REPL">SIM</asp:ListItem>
            <asp:ListItem Value="CC RATEPLAN CHANGED,CC CANCEL TM CHNG">Rate Plan</asp:ListItem>
            <asp:ListItem Value="GMD Switch Command">Request</asp:ListItem>
            <asp:ListItem Value="CC LIMIT CHANGE">Daily/Periodical Credit Limit</asp:ListItem>
            <asp:ListItem Value="CO TAKEOVER FROM">Contract Takeover</asp:ListItem>
            <asp:ListItem Value="CO TAKEOVER TO">Contract Takeover (Receiving)</asp:ListItem>
            <asp:ListItem Value="CO MOVED FROM">Contract Move</asp:ListItem>
            <asp:ListItem Value="CO MOVED TO">Contract Move (Receiving)</asp:ListItem>
            <asp:ListItem Value="CO STATUS CHANGED, CC CANCEL COSTATCHNG">Contract Status</asp:ListItem>
            <asp:ListItem Value="CO FU Carry Over">Free Unit Carry Over</asp:ListItem>
            <asp:ListItem Value="CO FOR RERATING">Rerating</asp:ListItem>
            <asp:ListItem Value="CC SRVSTATUS CHANGED,CC CANCEL SVSTATCHNG">Service Status</asp:ListItem>
            <asp:ListItem Value="CC UPDATE">CustomerData</asp:ListItem>
            <asp:ListItem Value="CC LIMIT">Credit Limit</asp:ListItem>
            <asp:ListItem Value="CC CREDIT">OCC / Credit</asp:ListItem>
            <asp:ListItem Value="CC CHARGE">OCC / Charge</asp:ListItem>
            <asp:ListItem Value="CC OCC DELETED">OCC (Deleted)</asp:ListItem>
            <asp:ListItem Value="CC CHARGE DELETE">OCC / Charge Deletion</asp:ListItem>
            <asp:ListItem Value="CC CREDIT DELETE">OCC / Credit Deletion </asp:ListItem>
            <asp:ListItem Value="CC NEW">New Adress or Tax Exemption</asp:ListItem>
            <asp:ListItem Value="CC PAYMENT">Payment arrangement</asp:ListItem>
            <asp:ListItem Value="CC ADDRESS">Adress Change</asp:ListItem>
            <asp:ListItem Value="CC PROMO ASSIGN">Promotion assigned</asp:ListItem>
            <asp:ListItem Value="CC PROMO REMOVE">Promotion Removed</asp:ListItem>
            <asp:ListItem Value="CC PROMO CHANGE">Promotion Changed</asp:ListItem>
        </asp:ListBox>
                 </ContentTemplate>
        </asp:UpdatePanel>     

       
       
            
        
        
                               </td>
   
    
  </tr>
                   <tr>
    <td colspan="4" class="bir" >    
                           <asp:Button ID="SCustCode0" runat="server" CssClass="button03" Text="Ara" OnClientClick="Confirm()" Height="22px" />
         &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                            <asp:Button ID="SCustCode1" runat="server" CssClass="button03" Text="Sıfırla" OnClientClick="Confirm()" style="" />
                            </td>
  </tr>
                                   <tr>
    <td colspan="4" class="bir" >    
        <div style="font-weight:bold">Kontrat Geçmişi<br />
        
        </div>

    <div>   
        <div id="emtytable" runat="server" visible="false">
      <div>0/0</div>
        <table style="width:1029px"> 
            <tr class="prompt">
                <th>Giriş Tarihi</th>
                <th> Kategori</th>
                 <th> Tanım</th>
                 <th> Contract ID</th>
                 <th> Giriş Yapan Kişi</th>
            </tr>
        </table>
            </div>
    </div>
                          
                            <asp:GridView ID="GridView2" runat="server"  AutoGenerateColumns="False" style="margin-top: 0px" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" AllowPaging="True" Width="1032px" >
            <Columns>
                
      
                  <asp:BoundField DataField="EnteredOn" HeaderText="Giriş Tarihi " 
              SortExpression="EnteredOn"/>
                  
        <asp:BoundField DataField="Category" HeaderText="Kategori" 
            SortExpression="Category" />
        <asp:BoundField DataField="Description" HeaderText="Tanım"
            SortExpression="Description" />
                <asp:BoundField DataField="ContractCode" HeaderText="Contract ID" 
            SortExpression="ContractCode"  />
                 <asp:BoundField DataField="EnteredBy" HeaderText="Giriş Yapan Kişi" 
            SortExpression="EnteredBy"  />
                 
    </Columns>

            <FooterStyle BackColor="White" ForeColor="#000066" />
            <HeaderStyle BackColor="#a2547f" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left"/>
            <RowStyle ForeColor="#000066" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#007DBB" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#00547E" />
        </asp:GridView>

                          
                            </td>
  </tr>
</table>
                <table width="900" id="grid" runat="server" visible="false">
  <tr>
    <td>
              
      </td>
  </tr>
</table>
     <asp:ValidationSummary ID="ValidationSummary2" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="GrpMSISDN" />
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="GrpCustCode" />
                  
        <div id="light" runat="server"  class="white_content"> <img src="../gif/gif-load.gif" /><br /><br />İŞLEMİNİZ YAPILIYOR LÜTFEN BEKLEYİNİZ</div>
		<div id="fade" runat="server" class="black_overlay"></div>

            
         <DIV ID="testdiv1" STYLE="position:absolute;visibility:hidden;background-color:white;layer-background-color:white;"></DIV> 
                  



      
            
           
    </form>
</body>
</html>
